package com.springmvc.springbootOne.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.springmvc.springbootOne.mapper.DemotestMapper;
import com.springmvc.springbootOne.service.DemotestService;
import com.springmvc.springbootOne.util.Pagebean;


@Service
//实现事务
@Transactional
public class DemotestServiceImpl implements DemotestService{
	
	@Autowired
	DemotestMapper demoMapper;
	
	public List getWhitsInformation(Pagebean pg){
		return demoMapper.getWhitsInformation(pg);
	}
	
	public int getWhitsInformationCount(Pagebean pg){
		return demoMapper.getWhitsInformationCount(pg);
	}
	
}

